﻿using Microsoft.EntityFrameworkCore;

namespace fCloud.SensorApi.Models;

public class SensorDbContext(DbContextOptions<SensorDbContext> options) : DbContext(options)
{
    public DbSet<Sensor> Sensors => Set<Sensor>();
    public DbSet<SensorData> SensorDataSet => Set<SensorData>();
    public DbSet<AlarmData> AlarmDateSet => Set<AlarmData>();
    public DbSet<Device> Devices=>Set<Device>();
}